from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep

op = webdriver.ChromeOptions()
op.add_experimental_option('excludeSwitches', ['enable-automation'])
op.add_experimental_option('useAutomationExtension', False)
driver = webdriver.Chrome(options=op)

driver.get("https://www.mosoteach.cn/web/index.php?c=passport&m=index")


driver.find_element(By.XPATH, "//input[@id='account-name']").send_keys("18328573582")
driver.find_element(By.XPATH, "//input[@id='user-pwd']").send_keys("")
driver.find_element(By.XPATH, "//button").click()
sleep(3)
print(driver.title)
sleep(2)
assert '我的班课' in driver.title
driver.quit()